package com.desginer.create.factory;

public class FactoryTest {
    public static void main(String[] args) {
        String type = "mac";

        if(type.equals("win")){
            WinDialog dialog = new WinDialog();
            dialog.render();
        }else if(type.equals("mac")){
            MacDialog dialog = new MacDialog();
            dialog.render();
        }else{
            System.out.println("other");
        }
    }
}
